package cn.ctvonline.android.kaopu.activity;

import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;

import cn.ctvonline.android.kaopu.R;
import cn.ctvonline.android.kaopu.base.BaseAppCompatActivity;

/**
 * Created by dujian on 15/12/9.
 */
public class FeatureDetailActivity extends BaseAppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        }
        setContentView(R.layout.activity_feature_detail);
    }

    private MenuItem searchItem, settingItem, shareItem;

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_search, menu);
        searchItem = menu.findItem(R.id.action_search);
        settingItem = menu.findItem(R.id.action_settings);
        shareItem = menu.findItem(R.id.action_share);
        return true;
    }

    @Override
    protected String generatePageName() {
        return "pageName is FeatureDetailActivity";
    }
}
